import { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: '/',
    name: 'container',
    component: () => import('@/views/container.vue'),
    redirect: { name: 'projects' },
    children: [
      {
        path: 'projects',
        name: 'projects',
        meta: { title: '我的项目' },
        component: () => import('@/views/pages/projects/index.vue')
      },
      {
        path: 'templates',
        name: 'templates',
        meta: { title: '我的模板' },
        component: () => import('@/views/pages/templates/index.vue')
      },
      {
        path: 'market',
        name: 'market',
        meta: { title: '模板市场' },
        component: () => import('@/views/pages/market/index.vue')
      }
    ]
  }
] as RouteRecordRaw[]